package com.roam.mapper;

import com.roam.VO.TourPlanVO;
import com.roam.entity.scene.Scene;
import com.roam.mgdb.MongoUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class SearchPageMapper {
    @Autowired
    private MongoUtils mongoUtils;

    public List<TourPlanVO> getSearchedScenes(String content) {
        return mongoUtils.searchScenesByName(content);
    }
}
